package com.fzkj.project.service.impl;

import com.fzkj.common.utils.DateUtils;
import com.fzkj.project.entiy.ProXxtz;
import com.fzkj.project.mapper.ProXxtzMapper;
import com.fzkj.project.service.IProXxtzService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 消息读取列Service业务层处理
 * 
 * @author zhangmx
 * @date 2024-06-05
 */
@Service
public class ProXxtzServiceImpl implements IProXxtzService
{
    @Autowired
    private ProXxtzMapper proXxtzMapper;

    /**
     * 查询消息读取列
     * 
     * @param id 消息读取列主键
     * @return 消息读取列
     */
    @Override
    public ProXxtz selectProXxtzById(String id)
    {
        return proXxtzMapper.selectProXxtzById(id);
    }

    /**
     * 查询消息读取列列表
     * 
     * @param proXxtz 消息读取列
     * @return 消息读取列
     */
    @Override
    public List<ProXxtz> selectProXxtzList(ProXxtz proXxtz)
    {
        return proXxtzMapper.selectProXxtzList(proXxtz);
    }

    /**
     * 新增消息读取列
     * 
     * @param proXxtz 消息读取列
     * @return 结果
     */
    @Override
    public int insertProXxtz(ProXxtz proXxtz)
    {
        proXxtz.setCreateTime(DateUtils.getNowDate());
        return proXxtzMapper.insertProXxtz(proXxtz);
    }

    /**
     * 修改消息读取列
     * 
     * @param proXxtz 消息读取列
     * @return 结果
     */
    @Override
    public int updateProXxtz(ProXxtz proXxtz)
    {
        return proXxtzMapper.updateProXxtz(proXxtz);
    }

    /**
     * 批量删除消息读取列
     * 
     * @param ids 需要删除的消息读取列主键
     * @return 结果
     */
    @Override
    public int deleteProXxtzByIds(String[] ids)
    {
        return proXxtzMapper.deleteProXxtzByIds(ids);
    }

    /**
     * 删除消息读取列信息
     * 
     * @param id 消息读取列主键
     * @return 结果
     */
    @Override
    public int deleteProXxtzById(String id)
    {
        return proXxtzMapper.deleteProXxtzById(id);
    }
}
